package com.maizhi.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * TSysOper entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private String id;
	private Dept dept;
	private String loginCode;
	private String loginPass;
	private String name;
	private Integer age;
	private String email;
	private String cardCode;
	private String position;
	private Integer ext1;
	private Integer ext2;
	private Integer ext3;
	private Date createOperDate;
	private String createOperId;
	private Date modifyOperDate;
	private String modifyOperId;
	private Integer status;
	private String remark;
	
	private String ip;
	
	private Set roles = new HashSet(0);
	
	

	// Constructors

	public Set getRoles() {
		return roles;
	}

	public void setRoles(Set roles) {
		this.roles = roles;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(Dept dept, String loginCode, String loginPass,
			String name, Integer age, String email, String cardCode,
			String position, Integer ext1, Integer ext2, Integer ext3,
			Date createOperDate, String createOperId, Date modifyOperDate,
			String modifyOperId, Integer status, String remark) {
		this.dept = dept;
		this.loginCode = loginCode;
		this.loginPass = loginPass;
		this.name = name;
		this.age = age;
		this.email = email;
		this.cardCode = cardCode;
		this.position = position;
		this.ext1 = ext1;
		this.ext2 = ext2;
		this.ext3 = ext3;
		this.createOperDate = createOperDate;
		this.createOperId = createOperId;
		this.modifyOperDate = modifyOperDate;
		this.modifyOperId = modifyOperId;
		this.status = status;
		this.remark = remark;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLoginCode() {
		return this.loginCode;
	}

	public void setLoginCode(String loginCode) {
		this.loginCode = loginCode;
	}

	public String getLoginPass() {
		return this.loginPass;
	}

	public void setLoginPass(String loginPass) {
		this.loginPass = loginPass;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCardCode() {
		return this.cardCode;
	}

	public void setCardCode(String cardCode) {
		this.cardCode = cardCode;
	}

	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public Integer getExt1() {
		return this.ext1;
	}

	public void setExt1(Integer ext1) {
		this.ext1 = ext1;
	}

	public Integer getExt2() {
		return this.ext2;
	}

	public void setExt2(Integer ext2) {
		this.ext2 = ext2;
	}

	public Integer getExt3() {
		return this.ext3;
	}

	public void setExt3(Integer ext3) {
		this.ext3 = ext3;
	}

	public Date getCreateOperDate() {
		return this.createOperDate;
	}

	public void setCreateOperDate(Date createOperDate) {
		this.createOperDate = createOperDate;
	}

 

	public Date getModifyOperDate() {
		return this.modifyOperDate;
	}

	public void setModifyOperDate(Date modifyOperDate) {
		this.modifyOperDate = modifyOperDate;
	}
 

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCreateOperId() {
		return createOperId;
	}

	public void setCreateOperId(String createOperId) {
		this.createOperId = createOperId;
	}

	public String getModifyOperId() {
		return modifyOperId;
	}

	public void setModifyOperId(String modifyOperId) {
		this.modifyOperId = modifyOperId;
	}

	public Dept getDept() {
		return dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}
}